let router = [
    {
        path: "/",
        redirect: "/login"
    },
    {
        path: "/tlogin",
        component: resolve =>
            require(["@/components/sys/common/Login.vue"], resolve)
    },
    {
        path: "/system",
        component: resolve =>
            require(["@/components/sys/common/Main.vue"], resolve),
        children: [

            //系统管理
            {
                path: "/",
                component: resolve =>
                    require(["@/components/sys/common/Home.vue"], resolve)
            },
            {
                path: "home",
                component: resolve =>
                    require(["@/components/sys/common/Home.vue"], resolve)
            },
            {
                path: "menu",
                component: resolve =>
                    require(["@/components/sys/system/Menu.vue"], resolve)
            },
            {
                path: "role",
                component: resolve =>
                    require(["@/components/sys/system/Role.vue"], resolve)
            },
            {
                path: "member",
                component: resolve =>
                    require(["@/components/sys/system/Member.vue"], resolve)
            },
            {
                path: "mySet",
                component: resolve =>
                    require(["@/components/sys/system/MySet.vue"], resolve)
            },

            //学生管理
            {
                path: "student",
                component: resolve =>
                    require(["@/components/sys/student/Student.vue"], resolve)
            },


            //项目管理
            {
                path: 'electronicRead',
                component: resolve =>
                    require(['@/components/sys/electronicRead/ElectronicRead.vue'],resolve)
            },
            {
                path: 'courseInfo',
                component: resolve =>
                    require(['@/components/sys/project/CourseInfo.vue'],resolve)
            },
            {
                path: 'cognitionManage',
                component: resolve =>
                    require(['@/components/sys/cognition/CognitionManage.vue'],resolve)
            },
            {
                path: 'interestInfo',
                component: resolve =>
                    require(['@/components/sys/project/InterestInfo.vue'],resolve)
            },
            {
                path: 'emotionInfo',
                component: resolve =>
                    require(['@/components/sys/project/EmotionInfo.vue'],resolve)
            },
            //档案管理
            {
                path: "course",
                component: resolve =>
                    require(["@/components/sys/record/Course.vue"], resolve)
            },
            {
                path: "electronicAppraise",
                component: resolve =>
                    require(["@/components/sys/electronicRead/ElectronicAppraise.vue"], resolve)
            },
            {
                path: "stuTraining",
                component: resolve =>
                    require(["@/components/sys/stuTraining/StuTraining.vue"], resolve)
            },
            {
                path: "stuFun",
                component: resolve =>
                    require(["@/components/sys/stuFun/StuFun.vue"], resolve)
            },
            {
                path: "stuEmotion",
                component: resolve =>
                    require(["@/components/sys/stuEmotion/StuEmotion.vue"], resolve)
            },


            {
                path: "electronicRecord",
                component: resolve =>
                    require(["@/components/sys/electronicRead/ElectronicRecord.vue"], resolve)
            },
            {
                path: "electronicRecommend",
                component: resolve =>
                    require(["@/components/sys/electronicRead/ElectronicRecommend.vue"], resolve)
            },
            {
                path: "test",
                component: resolve =>
                    require(["@/components/sys/cognition/test.vue"], resolve)
            },

            //统计分析
            {
                path: "courseChart",
                component: resolve =>
                    require(["@/components/sys/charts/CourseRecordChart.vue"], resolve)
            },{
                path: "collectChart",
                component: resolve =>
                    require(["@/components/sys/charts/ElectronicCollectChart.vue"], resolve)
            },
            {
                path: "gameChart",
                component: resolve =>
                    require(["@/components/sys/charts/GameRecordChart.vue"], resolve)
            },
        ]
    },

    {
        path: "*",
        component: resolve =>
            require(["@/components/sys/common/NoFound.vue"], resolve)
    }
]


export default {
    router
}
